//按需导出
export function sum(arr){
  return arr.reduce((prev,item)=>{
    return prev + item
  },0)
}